home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010306-20010921
/
000282_fdc@watsun.cc.columbia.edu_Thu Jul 19 14:51:41 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2001-09-20
|
3KB
|
72 lines
Article: 12622 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.protocols.kermit.misc
Subject: Re: one-line ftp upload
Date: 19 Jul 2001 18:35:59 GMT
Organization: Columbia University
Lines: 55
Message-ID: <9j79af$ove$1@newsmaster.cc.columbia.edu>
References: <20010716.135702.1187663298.24780@hotmail.com> <_wF57.798$Y47.9351@www.newsranger.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 995567759 25582 128.59.39.2 (19 Jul 2001 18:35:59 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 19 Jul 2001 18:35:59 GMT
Xref: newsmaster.cc.columbia.edu comp.unix.bsd.freebsd.misc:174388 comp.protocols.kermit.misc:12622
On Mon, 16 Jul 2001 20:55:28 GMT, Neil asked:
> How about this?
> a one-line ftp command to:
> -log into the ftp host
> -upload a file
> -logout of the ftp host
>
> I am trying to solve a webcam problem (as you may be able to see from a
> number of recent postings.) I am preparing a script to periodically
> upload a file of a captured camera image.
>
The new C-Kermit ftp client supports both downloading and uploading from
the command line:
http://www.columbia.edu/kermit/ftpclient.html
FTP-specific command-line options are available when you make an "ftp
personality" for C-Kermit by invoking as "ftp" (e.g. through a symbolic
link). Then you you use the following options:
-d Debug: enables debug messages and creates a debug.log file.
-n No autologin: Kermit should not send your user ID automatically.
-t Packet trace: accepted but is treated the same as -d.
-v Verbose: accepted but ignored (operation is verbose by default).
-i Not interactive: accepted but ignored.
-Y Don't execute the Kermit initialization file
-q Quiet, suppresses all but error messages
-S Stay, don't exit automatically
-A Autologin anonymously
-u name Username for autologin (synonym: -M)
-P password Password for autologin
-D directory cd after autologin
-b Binary mode
-a Text ("ascii") mode (synonym: -T)
-p files Files to put (upload) after autologin (synonym: -s)
-g files Files to get (download) after autologin
Plus a bunch of others relating to secure (Kerberos or SSL/TLS) connections.
Here's a "put" example using anonymous login:
ftp -A kermit.columbia.edu -D kermit/incoming -bp debug.log
Substitute the appropriate -u and -P options to log in as a real user, or
use secure authentication.
FTP URLs are also accepted on the command line, even without the "ftp"
personality, e.g.:
kermit ftp://kermit.columbia.edu/kermit/READ.ME
GETs the indicated file.
- Frank